package com.sdp.wx.db.wx_contract_template.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2024-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wx_contract_template")
public class WxContractTemplate extends Model<WxContractTemplate> {

    private static final long serialVersionUID=1L;

    /**
     *  内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 合同类型
     */
    @TableField("contract_type")
    private String contractType;

    /**
     * 说明
     */
    @TableField("template_desc")
    private String templateDesc;
    
    
    /**
     * 文件路径
     */
    @TableField("file_path")
    private String filePath;

    /**
     * 文件路径
     */
    @TableField("file_key")
    private String fileKey;
    
    /**
     * 记录生成时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;
    
    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
